# Contributor: Sam Whited <sam@samwhited.com>
# Maintainer: Sam Whited <sam@samwhited.com>
pkgname=py3-aioopenssl
_pkgname=aioopenssl
pkgver=0.6.0
pkgrel=0
pkgdesc="An asyncio Transport which uses PyOpenSSL instead of the built-in ssl module."
url="https://pypi.org/project/aioopenssl/"
arch="all"
license="Apache-2.0"
depends="python3 py3-openssl"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # tests not included in source package.

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
	install -Dm644 README.rst "$pkgdir"/usr/share/licenses/$pkgname/README.rst
}

sha512sums="
fee9fa34dd79a40b06bdbfa87dd7feba100c7a9e906f06e46fde63faa1e73fbe0f3085c5b05bd308cf73f73155eb1db07f3250f159c9fb0b9142a26a1ce747b3  aioopenssl-0.6.0.tar.gz
"
